package com.study.studyfive.quartz.bindspringboot;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ScheduleJob implements Job{

    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
        JobDataMap jobDataMap = jobExecutionContext.getJobDetail().getJobDataMap();
        log.info("获取任务的一些其他信息：{}", jobDataMap);
        log.info("这里书写需要执行的逻辑......");
    }

}